package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.subject.OneSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author kaixuan
 * @since 2020-05-29
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 获取上传的Excel文件使用EasyExcel读取
     * @param file
     * @param eduSubjectService 通过有参构造 可以让没有交给spring管理的类调用service
     */
    void saveSubject(MultipartFile file,EduSubjectService eduSubjectService);

    List<OneSubject> nestedList();

}
